import { createRouter, createWebHistory } from 'vue-router'
import { Home, Detail, About, Empty } from '@src/views';

const routerHistory = createWebHistory("/recruit/");
const router = createRouter({
    history: routerHistory,
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            name: "Home",
            component: Home
        },
        {
            path: '/detail',
            name: "Detail",
            component: Detail,
        },
        {
            path: '/about',
            name: "About",
            component: About
        },
        {
            path:  '/:pathMatch(.*)*',
            name: "Empty",
            component: Empty
        }
    ]
})

export default router